package com.jiang.demo2.service;

import com.jiang.demo2.map.CarInfoDao;
import com.jiang.demo2.map.UserInfoDao;
import com.jiang.demo2.table.Car;
import com.jiang.demo2.table.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarService {

    @Autowired
    private CarInfoDao carInfoDao;

    public Car getCarByCode(
            int usercode){
        return carInfoDao.getCarByUserCode(usercode+"");
    }

}
